package com.ruoyi.common.core.domain.custom;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 返回集合对象
 *
 * @author 众智汇云研发部
 * @date 2021-04-09 16:02
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Rlist<T> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 消息状态码
     */
    @ApiModelProperty(value = "消息状态码  200 表示操作成功", example = "200")
    private int code;

    /**
     * 消息内容
     */
    @ApiModelProperty(value = "消息", example = "success")
    private String msg;

    /**
     * 数据集合
     */
    @ApiModelProperty(value = "数据集合")
    private List<T> data;

}
